#!/bin/sh

a=(0 1)
b=`for ((i=0;i<6;i++)); do echo -n ${a[$RANDOM % ${#a[*]}]}; done`

echo "obase=16; ibase=2; $b"|bc
echo "$b"



#set -A num 0 1
#echo "randnumber is: ${str[$(echo $RANDOM%${#str[*]}|bc)]}\
#${num[$(echo $RANDOM%${#num[*]}|bc)]}" 


